<template>
  <div class="index-wrap">
    {{data.pageName}}
    <div class="ceshi" @click="clicked">
      测试
    </div>
    <van-button type="primary">主要按钮</van-button>
  </div>
</template>

<script lang="ts">
import { Component, Vue } from "vue-property-decorator"
import Config from '../../config/config'
interface IndexData {
  pageName: string
}

@Component({})
export default class About extends Vue {
  // data
  data: IndexData = {
    pageName: 'index'
  }

  async created() {
    let params = {
                password: "0",
                username: "yu.liu",
                verifyCode: "0",
                verifyId: 9253661
            }
    let {data} = await this.$http.http('login', params)
    // console.log(process.env.VUE_APP_WEB_API)
  }
    
  activated() {
    //
  }

  mounted() {
    //
  }

  // 初始化函数
  init() {
    //
  }

  clicked() {
    // this.$http.http({}, 'checkToken')
  }
}
</script>

<style lang="scss" scope>
.ceshi {
  width: 200px;
}
</style>
